//
// Created by wangwanlong on 2024/7/15.
//
#include <iostream>
#include <iomanip>

using namespace std;

//测试小数精度
void testDouble() {
  double x = 13.13131;
  double y = 1.2;
  double z = 2;
  cout<< z <<endl;
  cout << fixed << setprecision(3) << x<<" " << y << endl;
  cout <<fixed << setprecision(1) << z << endl;
}

void testSubstr(){
  string s = "131.graph";

  cout<< s.substr(0,s.find('.'));
}

//测试枚举转int
void testEnum(){
  enum class A{
    s = 10,
    sa = 15,
    ssa = 20
  };
  A s = A::ssa;
  cout<<static_cast<int>(s);
}

int main() {
  testEnum();
}